
// NewPromiseResolveThenableJobTask测试
const MyPromise = require('./MyPromise')

MyPromise.resolve().then(() => {
    console.log(0);
    return MyPromise.resolve(4)
}).then(res => {
    console.log(res);
})

MyPromise.resolve().then(() => {
    console.log(1);
}).then(() => {
    console.log(2);
}).then(() => {
    console.log(3);
}).then(() => {
    console.log(5);
}).then(() => {
    console.log(6);
})


// 0
// 1
// 2
// 3
// 4
// 5
// 6